package cn.itcast.health.vo;

import java.io.Serializable;
import java.util.Date;

public class LogBusinessVo implements Serializable {
    private static final long serialVersionUID = 1L;
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    /**
     * 日志编号
     */
    private Integer id;

    /**
     * 日志创建时间
     */
    private Date createTime;


    /**
     * ip地址
     */
    private String requestIp;

    /**
     * 请求的类型
     *
     */
    private String requestType;

    /**
     * 请求路径
     */
    private String requestURI;

    /**
     * 操作的方法名
     */
    private String operationMethod;


    /**
     * 模块名称
     */
    private String moduleName;

    /**
     * 操作类型
     */
    private String operationType;

    /**
     * 操作内容
     */
    private String operationContent;

    /**
     * 状态
     */
    private Integer state; // 0 是错误信息 1 方法正常执行完

    /**
     * 信息
     */
    private String message;

    public LogBusinessVo() {
    }

    public LogBusinessVo(Integer id, Date createTime, String requestIp, String requestType, String requestURI, String operationMethod, String moduleName, String operationType, String operationContent, Integer state, String message) {
        this.id = id;
        this.createTime = createTime;
        this.requestIp = requestIp;
        this.requestType = requestType;
        this.requestURI = requestURI;
        this.operationMethod = operationMethod;
        this.moduleName = moduleName;
        this.operationType = operationType;
        this.operationContent = operationContent;
        this.state = state;
        this.message = message;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRequestIp() {
        return requestIp;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public String getRequestURI() {
        return requestURI;
    }

    public void setRequestURI(String requestURI) {
        this.requestURI = requestURI;
    }

    public String getOperationMethod() {
        return operationMethod;
    }

    public void setOperationMethod(String operationMethod) {
        this.operationMethod = operationMethod;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public String getOperationContent() {
        return operationContent;
    }

    public void setOperationContent(String operationContent) {
        this.operationContent = operationContent;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "LogBusinessVo{" +
                "id=" + id +
                ", createTime=" + createTime +
                ", requestIp='" + requestIp + '\'' +
                ", requestType='" + requestType + '\'' +
                ", requestURI='" + requestURI + '\'' +
                ", operationMethod='" + operationMethod + '\'' +
                ", moduleName='" + moduleName + '\'' +
                ", operationType='" + operationType + '\'' +
                ", operationContent='" + operationContent + '\'' +
                ", state=" + state +
                ", message='" + message + '\'' +
                '}';
    }
}
